package com.waijiaojun.tpo.repository;

import com.waijiaojun.tpo.vo.IndexData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.waijiaojun.tpo.entity.Tpo;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface TpoDao {
    int insert(@Param("pojo") Tpo pojo);

    int insertSelective(@Param("pojo") Tpo pojo);

    int insertList(@Param("pojos") List<Tpo> pojo);

    int update(@Param("pojo") Tpo pojo);

    IndexData getIndexDataByOpenid(@Param("openid") String openid);
}
